package com.ssy.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ssy.common.utils.PageResult;
import com.ssy.common.utils.Result;
import com.ssy.system.pojo.Permission;
import com.ssy.system.vo.PermissionVo;

import java.util.List;

/**
 * @author ssy
 */
public interface IPermissionService extends IService<Permission> {

    List<Permission> queryAllPermissionForList(PermissionVo permissionVo);

    List<Permission> queryPermissionBuUserIdForList(PermissionVo permissionVo,Integer id);

    PageResult loadAllpermission(PermissionVo permissionVo);

    Integer selectMaxOrderNum();

    int insertMenu(Permission permission);

    int updateMenuById(Permission permission);

    int deleteMenuById(Integer id);

    int checkCurrentMenuHasChild(Integer pid);

    int insertPermission(Permission permission);

    int updatePermissionById(Permission permission);

    int deletePermissionById(Integer id);

    List<String> queryPermissionByUserId(Integer userId);

    Result queryRolePermissionByRoleId(Integer roleId);


}
